import os


def load_config():
    mode = os.environ.get('MODE', 'DEV')
    if mode == 'PROD':
        from common.config.env_prod import EnvProd
        return EnvProd
    elif mode == 'TEST':
        from common.config.env_test import EnvTest
        return EnvTest
    else:
        from common.config.env_dev import EnvDev
        return EnvDev


CONFIG = load_config()
